import { createRouter, createWebHistory, RouterLink } from 'vue-router'
import Home from './components/Home.vue'
import Movie from './components/Movie.vue'
import About from './components/About.vue'
import HelloWorld from './components/HelloWorld.vue'
import Login from './components/Login.vue'
import Notfound from './components/Notfound.vue'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path:'/home',
            component:HelloWorld,
            children:[
                {
                    path:'',
                    component:Home
                },
                {
                    path:'about',
                    component:About
                },
                {
                    path:'login',
                    components:{
                        default:Login,
                        helper:Movie
                    }
                }
            ]
        }
    ]

})

export default router